// This header file is designed to provide a specification for
// our character setup window
//
// Created by Christopher Bowlsby on 11/5/11

#ifndef CREATEPLAYER_H
#define CREATEPLAYER_H

#include <QtGui/QDialog>
#include <string>

// Qt elements
namespace Ui {
    class createPlayer;
}

class createPlayer : public QDialog
{
    Q_OBJECT

    private:
        std::string pname, pclass;
        int agility, attack, apoints, htpoints;
        Ui::createPlayer *ui;

    // slots to handle button clicks
    private slots:
        void on_okButton_clicked();
        void on_classList_currentIndexChanged(int);
        void on_regenStats_clicked();

    public:
        explicit createPlayer(QWidget *parent = 0);
        ~createPlayer();

        // random number generator
        std::vector<int> randNum();

        // setters and getters
        void setPlayerName(std::string);
        std::string getPlayerName() const;
        void setPlayerClass(std::string);
        std::string getPlayerClass() const;
        void setPlayerStats(int, int, int, int);
        std::vector<int> getPlayerStats();
        int getAgility();
        int getAttack();
        int getApoints();
        int getHtpoints();
};

#endif // CREATEPLAYER_H
